﻿using System;
using System.Collections.Generic;
using System.Text;

using Castle.Core;
using Castle.Core.Interceptor;
using Castle.MicroKernel;

namespace Castle.Facilities.PolicyInjection
{
    public class HandlerContext
    {
        private IInvocation _invocation;

        public IInvocation Invocation
        {
            get
            {
                return _invocation;
            }
            set
            {
                _invocation = value;
            }
        }

        private Type _serviceType;

        public Type ServiceType
        {
            get
            {
                return _serviceType;
            }
            set
            {
                _serviceType = value;
            }
        }

        public HandlerContext()
        {
        }

        public HandlerContext(IInvocation invocation, Type serviceType)
        {
            _invocation = invocation;
            _serviceType = serviceType;
        }
    }
}
